import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'gis:map-o',
      keepAlive: true,
      order: 1000,
      title: $t('mars3dDemo.title'),
    },
    name: 'mars3dDemo',
    path: '/mars3dDemo',
    children: [
      {
        meta: {
          icon: 'gis:map-o',
          title: $t('mars3dDemo.example1.title'),
        },
        name: 'example1',
        path: '/mars3dDemo/example1',
        component: () => import('#/views/mars3dDemo/example1/index.vue'),
      },
      {
        meta: {
          icon: 'gis:map-o',
          title: $t('mars3dDemo.example2.title'),
        },
        name: 'example2',
        path: '/mars3dDemo/example2',
        component: () => import('#/views/mars3dDemo/example2/index.vue'),
      },
    ],
  },
];

export default routes;
